package com.afkx.oop.demo8;

/**
 * @ClassName 桃木门
 * @Description TODO
 * @Author Kx
 * @Date 2025/3/4 19:13
 * @Version 1.0
 */
public class PeachWoodDoor extends Door implements Exorcise{
    public PeachWoodDoor(String name) {
        super(name);
    }

    @Override
    public void open() {
        System.out.println("桃木门可以开门");
    }

    @Override
    public void close() {
        System.out.println("桃木门可以关门");
    }

    @Override
    public void exorcise() {
        System.out.println("桃木门可以辟邪");
    }
}
